package com.shenyong.ladmin.service.Impl;

import com.shenyong.entity.Notice;
import com.shenyong.ladmin.mapper.NoticeMapper;
import com.shenyong.ladmin.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class NoticeServiceImpl implements NoticeService {
  @Autowired
  private NoticeMapper noticeMapper;

  public List<Notice> findAll(Map<String,Object> map) {
    return noticeMapper.findAll(map);
  }

  public int noticeCount() {
    return noticeMapper.noticeCount();
  }

  public int save(Notice notice) {
    return noticeMapper.save(notice);
  }

  public int noticeUpdate(Notice notice) {
    return noticeMapper.noticeUpdate(notice);
  }

  public int noticeDelete(int notice_id) {
    return noticeMapper.noticeDelete(notice_id);
  }
}
